package com.lbd.system.dao;

import com.lbd.system.bean.Authority;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;
import java.util.List;

/**
 * Created by WangYajie on 2016/9/12.
 */
public interface AuthorityRepository extends PagingAndSortingRepository<Authority, Serializable>, JpaSpecificationExecutor<Authority> {
    void deleteByRoleId(String id);

    void deleteByEmpId(String id);

    List<Authority> findByRoleId(String id);

    List<Authority> findByEmpId(String id);
}
